]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
[ShellGlobal] Add shell_global_breakpoint
authorColin Walters <walters@verbum.org>
Tue, 23 Feb 2010 23:49:02 +0000 (18:49 -0500)
committerColin Walters <walters@verbum.org>
Tue, 23 Feb 2010 23:51:27 +0000 (18:51 -0500)
This is useful for debugging with gdb.

src/shell-global.c
src/shell-global.h

index e3e1777779e1d5368379c21956c0f3983af451e1..2cee51e0871c91be68481d48d12f451f15efad6b 100644 (file)
@@ -783,6 +783,19 @@ shell_global_reexec_self (ShellGlobal *global)
   g_ptr_array_free (arr, TRUE);
 }
 
+/**
+ * shell_global_breakpoint:
+ * @global: A #ShellGlobal
+ *
+ * Using G_BREAKPOINT(), interrupt the current process.  This is useful
+ * in conjunction with a debugger such as gdb.
+ */
+void
+shell_global_breakpoint (ShellGlobal *global)
+{
+  G_BREAKPOINT ();
+}
+
 /**
  * shell_global_gc:
  * @global: A #ShellGlobal
index 702c1840446f1e5d5ca99522b70a40243d29032c..a3cd89c326a37ca5dbe8bf561ee81e56eec0e064 100644 (file)
@@ -70,6 +70,8 @@ gboolean shell_global_display_is_grabbed (ShellGlobal *global);
 
 void shell_global_reexec_self (ShellGlobal *global);
 
+void shell_global_breakpoint (ShellGlobal *global);
+
 void shell_global_gc (ShellGlobal *global);
 
 void shell_global_format_time_relative_pretty (ShellGlobal *global, guint delta, char **text, guint *update_time);